﻿namespace DataManage
{
    /// <summary>
    /// 上位机帧格式
    /// </summary>
    public class PCFrame
    {
        /// <summary>
        /// 起始帧ID
        /// </summary>
        public uint StartID { get; set; }
        /// <summary>
        /// 结束帧ID
        /// </summary>
        public uint EndID {  get; set; }
        /// <summary>
        /// 是否是范围帧ID
        /// </summary>
        public bool IsArea {  get; set; }
        /// <summary>
        /// 发送周期，单位：毫秒
        /// </summary>
        public int TransmissionPeriod {  get; set; }
        /// <summary>
        /// 是否是事件型
        /// </summary>
        public bool IsEventDriven { get; set; }
        /// <summary>
        /// 是否是标定类型
        /// </summary>
        public bool IsCalibrationType {  get; set; }
        /// <summary>
        /// 数据帧解析
        /// </summary>
        public virtual void FrameParse()
        {

        }
    }
}
